import 'package:healthy_station_flutter/entity/pre_info_entity.dart';
import 'package:healthy_station_flutter/generated/json/base/json_field.dart';
import 'package:healthy_station_flutter/generated/json/diag_and_presciption_entity.g.dart';
import 'dart:convert';

import 'diag_info_entity.dart';
import 'fee_info_entity.dart';
export 'package:healthy_station_flutter/generated/json/diag_and_presciption_entity.g.dart';

@JsonSerializable()
class DiagAndPresciptionEntity {
	//处方日期
	String? createTime = '';
	//门诊号
	String? opcId = '';
	//咨询时间
	String? consultTime = '';
	//接诊号
	String? clinicId = '';
	//姓名
	String? patName = '';
	//就诊卡类型
	String? cardType = '';
	//就诊卡号
	String? cardData = '';
	//病人身份证号
	String? idCard = '';
	//出生日期
	String? patBirth = '';
	//接诊状态
	String? state = '';
	//诊断意见
	String? diagOpinion = '';
	//处方id
	List<String>? preIds;
	List<PreInfoEntity>? preInfo;
	List<FeeInfoEntity>? feeInfo;
	List<DiagInfoEntity>? diagInfo;

	DiagAndPresciptionEntity();

	factory DiagAndPresciptionEntity.fromJson(Map<String, dynamic> json) => $DiagAndPresciptionEntityFromJson(json);

	Map<String, dynamic> toJson() => $DiagAndPresciptionEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}